<template>
	<view class="pay-base-info">
		<!-- 姓名 -->
		<view class="username cell-item">
			<view>合同标题</view>
			<view class="right-content">{{payEntity.contractTitle||'--'}}</view>
		</view>
		<view class="regitster-info cell-item">
			<view>审批状态</view>
			<view class="right-content">
				{{payEntity.status==0?'未审批':(payEntity.status==1?'审批中':'已审批')}}
			</view>
		</view>
		<view class="regitster-info cell-item">
			<view>比例</view>
			<view class="right-content">{{payEntity.payRatio==null?'--':payEntity.payRatio+'%'}}</view>
		</view>
		<view class="regitster-info cell-item">
			<view>款项</view>
			<view class="right-content">{{payEntity.payment||'--'}}</view>
		</view>
		<view class="regitster-info cell-item">
			<view>金额</view>
			<view class="right-content">{{payEntity.payMoney==null?'--':payEntity.payMoney+'元'}}</view>
		</view>
		<view class="regitster-info cell-item" style="border-bottom: none;">
			<view>项目</view>
			<view class="right-content">{{payEntity.projectName||'--'}}</view>
		</view>
	</view>
</template>

<script>
	import {
		api,
		post
	} from '@/util/api.js'
	export default {
		props: {
			id: ''
		},
		data() {
			return {
				payEntity: {}
			}
		},
		created() {
			this.querySingle()
		},
		methods: {
			querySingle() {
				post(api.PaySingle, {
					id: this.id
				}).then(res => {
					this.payEntity = res.data
				})
			}
		}
	}
</script>

<style>
	@import '../../static/css/PayBaseInfo.css';
</style>